<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model;

use Hyperf\DbConnection\Model\Model as MineModel;

/**
 * @property int $id 主键
 * @property string $name 位置名称
 * @property float $longitude 中心经度
 * @property float $latitude 中心纬度
 * @property float $altitude 中心海拔
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class AttractionSpotPosition extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction_spot_position';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['name', 'longitude', 'latitude', 'altitude'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'longitude' => 'float', 'latitude' => 'float', 'altitude' => 'float'];
}